#include "armdefs.h"


#define POS(x) ((~(x)) >> 31)
#define NEG(x) ( (x) >> 31)



void set_add_carry(ARMProcState* state, unsigned int a, unsigned int b, unsigned int result);

 
void set_add_overflow(ARMProcState *state, unsigned int a, unsigned int b, unsigned int result);


void set_sub_carry (ARMProcState *state, unsigned int a, unsigned int b, unsigned int result);


void set_sub_overflow(ARMProcState *state, unsigned int a, unsigned int b, unsigned int result);
